/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1::selection {
    background: var(--text-color);
    color: var(--background-color);
 }
 h2::selection {
    background: var(--text-color);
    color: var(--background-color);
 }
 p::selection {
    background: var(--text-color);
    color: var(--background-color);
 }
 a::selection {
    background: var(--text-color);
    color: var(--background-color);
 }

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-y: hidden;
    overflow-x: hidden;
}
nav {
    margin-top: 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: var(--nav-bg-color); /* Background color changes with theme */
}

nav .logo h1{
    font-size: 28px;
    font-weight: bolder;
}



.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color) !important; /* Ensure text color changes with theme */
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.nav-links a:hover{
    font-weight: 100;
    
}

#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color); /* Icon color changes with theme */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle div {
    width: 100%;
    height: 3px;
    background-color: var(--text-color); /* Line color changes with theme */
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: rgba(5, 2, 5, 0.3); /* Transparent with backdrop blur */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 70%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 9;
        border: 1px solid var(--text-color);
    }
    nav .logo h1{
        font-size: 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        animation: slideIn 0.5s forwards ease;
        animation-delay: 0.3s;
        margin-top: 10%;
    }
    
    .nav-links a {
        color: var(--text-color) !important;
        font-size: 30px;
        font-weight: bolder;
    }

    .menu-toggle {
        display: flex;
    }

    /* Menu transition and animations */
    .menu-toggle.open div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open div:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Optional hover effects for menu items */
.nav-links a:hover {
    color: var(--nav-hover-color) !important; /* Customizable via themes */
    transition: color 0.3s ease;
}



/* Main Content */
.content {
    padding: 20px;
    text-align: center;
}

/* Services Section */
.services {
    margin: 20px 0;
}

.services h2 {
    margin-bottom: 20px;
    text-align: center;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: calc(33% - 20px); /* Three cards per row, adjust as needed */
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transition: 0.4s;
    border-radius: 10px;
}

.service-card:hover {
    transform: scale(2);
}
.service-card img {
    width: auto;
    height: 150px; /* Adjust height */
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 10px 0;
}

.service-card p {
    color: #555;
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 350px;
    background: transparent;
    backdrop-filter: blur(20px);
    height: 300px; /* Initial height for mobile view */
    background-color: rgba(0, 0, 0, 0.3); /* Use theme background color */
    color: var(--text-color); /* Use theme text color */
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease, background-color 0.5s, color 0.5s; /* Smooth transition for height, background, and text color changes */
}

.chatbot-header {
    background-color: #333;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--text-color); /* Use theme text color for header background */
    color: var(--background-color); /* Use theme background color for header text */
    transition: background-color 0.5s, color 0.5s; /* Smooth transition for header color changes */
}
.chatbot-header .bot{
    display: flex;
    justify-content: center;
    align-items: center;
}
.chatbot-header img{
    height: 40px;
    border-radius: 50%;
}

.chatbot-body {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100% - 70px); /* Adjust based on header and input size */
    display: flex;
    flex-direction: column;
}

/* Messages */
.user-message, .bot-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    max-width: 80%;
    color: var(--text-color); /* Use theme text color */
}

.user-message {
    background-color:var(--text-color);
    color: var(--background-color);
    align-self: flex-end; /* Right alignment */
    text-align: right;
}

.bot-message {
    background-color: var(--background-color); /* Use theme background color */
    align-self: flex-start; /* Left alignment */
    text-align: left;
}

/* Adjust alignment of messages */
.chatbot-body .user-message {
    margin-left: auto;
    margin-right: 0;
}

.chatbot-body .bot-message {
    margin-left: 0;
    margin-right: auto;
}

.chatbot-suggestions {
    padding: 10px;
    border-top: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap if necessary */
    background-color: var(--background-color); /* Use theme background color */
    color: var(--text-color); /* Use theme text color */
}

.suggestion-btn {
    background-color:var(--text-color);
    border: 1px solid #ccc;
    color: var(--background-color);
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--background-color); /* Explicitly set text color */
    transition: 0.3s;
}

.suggestion-btn:hover {
    background-color: var(--text-color);
    color: var(--nav-hover-color);/* Ensure text color is still visible on hover */
    background-color: var(--background-color);
}

/* Chatbot Input */
.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: var(--background-color); /* Use theme background color */
    color: var(--text-color); /* Use theme text color */
}

.chatbot-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    background-color: var(--background-color); /* Use theme background color */
    color: var(--text-color); /* Use theme text color */
}

.chatbot-input button {
    background-color: var(--text-color); /* Use theme text color */
    color: var(--background-color); /* Use theme background color */
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.chatbot-input button:hover {
    border: 2px solid var(--text-color);
    background: none;
    color: var(--text-color);
}

input::-webkit-input-placeholder {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* For Mozilla Firefox */
input::-moz-placeholder {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* For Internet Explorer 10+ */
input:-ms-input-placeholder {
    color: var(--text-color);
    font-style: italic;
    font-size: 0.9rem;
}


/* For Edge */
input::-ms-input-placeholder {
    color: var(--text-color);
    font-size: 0.9rem;
}
/* Open Chat Button */
.open-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: var(--text-color); /* Use theme text color */
    color: var(--background-color); /* Use theme background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.open-chat-btn:hover {
    background-color: #555;
}

/* Hide Chatbot Button */
#close-btn {
    background: none;
    border: none;
    color: var(--background-color); /* Use theme background color */
    font-size: 20px;
    cursor: pointer;
}


@media (max-width: 480px) {
    .chatbot-container {
        width: 100%; /* Full width on mobile */
        right: 0;
        border-radius: 0; /* Remove border-radius for full-width effect */
    }

    .chatbot-header {
        padding: 10px 15px; /* Adjust padding for better fit on mobile */
    }
    .chatbot-header img{
        height: 30px;
    }

    .chatbot-body {
        padding: 10px;
    }

    .suggestion-btn {
        font-size: 10px; /* Adjust button font size */
        padding: 6px 10px; /* Adjust button padding */
        margin-bottom: 5px;
    }

    .chatbot-input input {
        padding: 8px; /* Adjust input padding */
    }

    .chatbot-input button {
        padding: 8px; /* Adjust button padding */
    }

    /* Adjust toggle chat button for mobile */
    #toggle-chat-btn {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Further adjustments for tablet view */
@media (min-width: 481px) and (max-width: 768px) {
    .chatbot-container {
        width: 80%; /* Larger width for tablets */
        right: 10%;
        height: 400px; /* Adjust height for tablets */
    }

    .chatbot-header {
        padding: 10px 20px;
    }

    .chatbot-body {
        padding: 15px;
    }

    .chatbot-input input {
        padding: 10px;
    }

    .chatbot-input button {
        padding: 10px;
    }

    .suggestion-btn {
        font-size: 11px;
        padding: 7px 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {


    .service-card {
        width: calc(100% - 20px); /* Full width minus some margin */
        height: auto; /* Allow height to adjust based on content */
        display: block; /* Full width on small screens */
    }

    .service-card img {
        height: 150px; /* Adjust height as needed */
        width: auto; /* Maintain aspect ratio */
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.2em; /* Slightly smaller font size */
        margin: 10px 0;
    }

    .service-card p {
        font-size: 1em; /* Adjust font size for better readability */
        color: var(--text-color);
    }
}
/* Toggle Button */
#toggle-chat-btn {
    display: none; /* Hidden by default; will be shown when chatbox is hidden */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    background: url('assets/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-button {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}


/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('path/to/your-background-image.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 5%;
    padding: 0 20px;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

/* Light Mode */
.light-mode .hero-content h1 {
    color: #000; /* Light mode heading color */
}

.light-mode .hero-content p {
    color: #333; /* Light mode paragraph color */
}

.light-mode .cta-button {
    background-color: var(--text-color); /* Blue theme button color */
    color: var(--background-color);
}

.light-mode .cta-button:hover {
    background-color: var(--background-color); /* Blue theme button color */
    color: var(--text-color); /* Light mode button hover color */
    border: 1px solid var(--text-color);
}

/* Dark Mode */
.dark-mode .hero-content h1 {
    color: #fff; /* Dark mode heading color */
}

.dark-mode .hero-content p {
    color: #ddd; /* Dark mode paragraph color */
}

.dark-mode .cta-button {
    background-color: var(--text-color); /* Blue theme button color */
    color: var(--background-color);
}

.dark-mode .cta-button:hover {
    background-color: var(--background-color); /* Blue theme button color */
    color: var(--text-color); /* Light mode button hover color */
    border: 1px solid var(--text-color);
}

/* Theme Blue */
.theme-blue .hero-content h1 {
    color: #000000; /* Blue theme heading color */
}

.theme-blue .hero-content p {
    color: #000000; /* Blue theme paragraph color */
}

.theme-blue .cta-button {
    background-color: var(--text-color); /* Blue theme button color */
    color: var(--background-color);
}

.theme-blue .cta-button:hover {
    background-color: var(--background-color); /* Blue theme button color */
    color: var(--text-color); /* Light mode button hover color */
    border: 1px solid var(--text-color);
}

/* Theme Green */
.theme-green .hero-content h1 {
    color: #fff; /* Green theme heading color */
}

.theme-green .hero-content p {
    color: #e0e0e0; /* Green theme paragraph color */
}

.theme-green .cta-button {
    background-color: var(--text-color); /* Blue theme button color */
    color: var(--background-color);
}

.theme-green .cta-button:hover {
    background-color: var(--background-color); /* Blue theme button color */
    color: var(--text-color); /* Light mode button hover color */
    border: 1px solid var(--text-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .hero-section{
        margin-top: 10%;
    }
}


::-webkit-scrollbar{
    width: 5px;
}

::-webkit-scrollbar-track{
    background-color: var(--text-color);
}
::-webkit-scrollbar-thumb{
    background-color: var(--background-color);
    border-radius: 10px;
}